import request from '@/utils/request'

// 查询店铺图片：存储店铺的轮播图图片列表
export function listShopImgs(query) {
  return request({
    url: '/merchant/shopImgs/list',
    method: 'get',
    params: query
  })
}

// 查询店铺图片：存储店铺的轮播图图片详细
export function getShopImgs(id) {
  return request({
    url: '/merchant/shopImgs/' + id,
    method: 'get'
  })
}

// 新增店铺图片：存储店铺的轮播图图片
export function addShopImgs(data) {
  return request({
    url: '/merchant/shopImgs',
    method: 'post',
    data: data
  })
}

// 修改店铺图片：存储店铺的轮播图图片
export function updateShopImgs(data) {
  return request({
    url: '/merchant/shopImgs',
    method: 'put',
    data: data
  })
}

// 删除店铺图片：存储店铺的轮播图图片
export function delShopImgs(id) {
  return request({
    url: '/merchant/shopImgs/' + id,
    method: 'delete'
  })
}
